package grafica.ventanas;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.Button;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.JButton;

public class empresa {

	private JFrame jFrameEmpresa = null;  //  @jve:decl-index=0:visual-constraint="209,69"
	private JPanel jContentPaneEmpresa = null;
	private JPanel jPanelEmpresa = null;
	private Button buttonAlta = null;
	private JButton jButtonAlta = null;
	private JButton jButtonBaja = null;
	private JButton jButtonModificacion = null;
	public JFrame getjFrameEmpresa() {
		return jFrameEmpresa;
	}

	public void setjFrameEmpresa(JFrame jFrameEmpresa) {
		
		this.jFrameEmpresa = jFrameEmpresa;
	}

	public JPanel getjContentPaneEmpresa() {		
		return jContentPaneEmpresa;
		
	}

	public void setjContentPaneEmpresa(JPanel jContentPaneEmpresa) {
		this.jContentPaneEmpresa = jContentPaneEmpresa;
	}

	public JPanel getjPanelEmpresa() {
		return jPanelEmpresa;
	}

	public void setjPanelEmpresa(JPanel jPanelEmpresa) {
		this.jPanelEmpresa = jPanelEmpresa;
	}
/*
	public void setButtonAlta(Button buttonAlta) {
		buttonAlta = invalid: "IWAV0177E Expression "buttonAlta" is too complicated. - buttonAlta";
	}
*/
	public empresa() {
		// TODO Auto-generated constructor stub
	}
	
	public void setVisible (boolean b){	
		this.getJFrameEmpresa().setVisible(b);
	}

	/**
	 * This method initializes jFrameEmpresa	
	 * 	
	 * @return javax.swing.JFrame	
	 */
	private JFrame getJFrameEmpresa() {
		if (jFrameEmpresa == null) {
			jFrameEmpresa = new JFrame();
			jFrameEmpresa.setSize(new Dimension(295, 250));
			jFrameEmpresa.setTitle("EMPRESAS");
			jFrameEmpresa.setContentPane(getJContentPaneEmpresa());
			jFrameEmpresa.setLocationRelativeTo(null);			
		}
		return jFrameEmpresa;
	}

	/**
	 * This method initializes jContentPaneEmpresa	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPaneEmpresa() {
		if (jContentPaneEmpresa == null) {
			jContentPaneEmpresa = new JPanel();
			jContentPaneEmpresa.setLayout(new BorderLayout());
			jContentPaneEmpresa.add(getJPanelEmpresa(), BorderLayout.CENTER);
		}
		return jContentPaneEmpresa;
	}

	/**
	 * This method initializes jPanelEmpresa	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanelEmpresa() {
		if (jPanelEmpresa == null) {
			
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
			gridBagConstraints4.gridx = 1;
			gridBagConstraints4.gridy = 2;
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 1;
			gridBagConstraints3.gridy = 1;
			gridBagConstraints3.insets = new Insets(10,10,10,10);
			GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
			gridBagConstraints1.gridx = 0;
			gridBagConstraints1.gridwidth = 2;
			gridBagConstraints1.gridy = 0;
			jPanelEmpresa = new JPanel();
			jPanelEmpresa.setLayout(new GridBagLayout());
			jPanelEmpresa.add(getJButtonAlta(), gridBagConstraints1);
			jPanelEmpresa.add(getJButtonBaja(), gridBagConstraints3);
			jPanelEmpresa.add(getJButtonModificacion(), gridBagConstraints4);
			
			
		}
		return jPanelEmpresa;
	}

	/**
	 * @param jFrameEmpresa
	 * @param jContentPaneEmpresa
	 * @param jPanelEmpresa
	 * @param buttonAlta
	 */
	public empresa(JFrame jFrameEmpresa, JPanel jContentPaneEmpresa,
			JPanel jPanelEmpresa, Button buttonAlta) {
		super();
		this.jFrameEmpresa = jFrameEmpresa;
		this.jContentPaneEmpresa = jContentPaneEmpresa;
		this.jPanelEmpresa = jPanelEmpresa;
		this.buttonAlta = buttonAlta;
	}

	/**
	 * This method initializes jButtonAlta	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonAlta() {
		if (jButtonAlta == null) {
			jButtonAlta = new JButton();
			jButtonAlta.setPreferredSize(new java.awt.Dimension(160,25));
			jButtonAlta.setText("ALTAS");
		}
		return jButtonAlta;
	}

	/**
	 * This method initializes jButtonBaja	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonBaja() {
		if (jButtonBaja == null) {
			jButtonBaja = new JButton();
			jButtonBaja.setPreferredSize(new java.awt.Dimension(160,25));
			jButtonBaja.setText("BAJAS");
		}
		return jButtonBaja;
	}

	/**
	 * This method initializes jButtonModificacion	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonModificacion() {
		if (jButtonModificacion == null) {
			jButtonModificacion = new JButton();
			jButtonModificacion.setPreferredSize(new java.awt.Dimension(160,25));
			jButtonModificacion.setText("MODIFICACIONES");
		}
		return jButtonModificacion;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
